exports.Createheader = function(_args) {
	
	
    var pathimage=Ti.App.Properties.getString('pathimage');
	var view = Ti.UI.createView({
	    backgroundColor: 'transparent',
	    top: 0,
	    height:_args.height,
	    width:'100%',
	    touchEnabled: true,
	});
	
	var vi_line = Titanium.UI.createView({
		bottom:0,
		width:'100%',
		height:3,
		backgroundImage: pathimage+'img_devide_line_setting.png',
	}); 
	view.add(vi_line)

	var btback = Titanium.UI.createButton({
		left:0,
		width:_args.height,//44,
		height:_args.height,//44,
	    backgroundImage:pathimage+'btn_back.png',//_args.image_back,
		backgroundSelectedImage:pathimage+'btn_back_on.png',
		//backgroundColor:'red',
		
	}); 
	btback.addEventListener("click", function(e)
	{
		Ti.App.fireEvent('back_'+_args.idWinParent)
	});
	view.add(btback)
	
	if(_args.IsCall==1)
	{
		var btcall = Titanium.UI.createButton({
			right:0,
			width:_args.height,//30,
			height:_args.height,//30,
		    backgroundImage:pathimage+'call.png',//_args.image_back,
			backgroundSelectedImage:pathimage+'call.png',
			//backgroundColor:'red',
			
		}); 
		btcall.addEventListener("click", function(e)
		{
			Ti.App.fireEvent('callTelephone')
		});
		view.add(btcall)
	}
	if(_args.isLocation==1)
	{
		var btcall = Titanium.UI.createButton({
			right:0,
			width:_args.height,//44,
			height:_args.height,//44,
		    backgroundImage:pathimage+'draw_location.png',//_args.image_back,
			backgroundSelectedImage:pathimage+'draw_location.png',
			//backgroundColor:'red',
			
		}); 
		btcall.addEventListener("click", function(e)
		{
			Ti.App.fireEvent('getLocation')
		});
		view.add(btcall)
	}
	
	var text = Titanium.UI.createLabel({
		text:_args.title,
		font:{
				fontSize:Ti.App.Properties.getInt('fontsize_header'),// 14,
				fontWeight:'bold',
			 },
		color:'#724b37',
		center:0,
		//width:Titanium.Platform.displayCaps.platformWidth-88,
		height:'auto',
		touchEnabled:false,
	}); 
	view.add(text)
	
	return view;
};